home *** CD-ROM | disk | FTP | other *** search
- on(release){
- if(_root.activeMCList.length > 1 & _root.direction == "forward")
- {
- stopAllSounds();
- _root.activeMCList.pop();
- _root.activeMC = _root.activeMClist.shift(_root.activeMC);
- _root.activeMClist.push(_root.activeMC);
- _root.dynamicbuttonMc.setProperty("frontAudioInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("backAudioInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("frontImageHolderInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("backImageHolderInstance",_visible,false);
- _root.dynamicbuttonMc.question = _root.frontArray[_root.activeMC];
- _root.dynamicbuttonMc.answer = _root.backArray[_root.activeMC];
- _root.dynamicbuttonMc.frontAudio = _root.frontAudioArray[_root.activeMC];
- _root.dynamicbuttonMc.backAudio = _root.backAudioArray[_root.activeMC];
- _root.dynamicbuttonMc.frontImage = _root.frontImageArray[_root.activeMC];
- _root.dynamicbuttonMc.backImage = _root.backImageArray[_root.activeMC];
- _root.dynamicbuttonMc.setProperty("_root.flipcursor1",_visible,false);
- _root.dynamicbuttonMc.gotoAndPlay(1);
- _root.removeMC.gotoAndPlay(1);
- if(_root.activeTotal > _root.passiveMC + 1)
- {
- _root.passiveMC += 1;
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- else if(_root.passiveMC gt 1)
- {
- _root.passiveMC -= 1;
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- else if(_root.passiveMC eq 1)
- {
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- }
- else if(_root.activeMCList.length > 1 & _root.direction == "backward")
- {
- stopAllSounds();
- _root.activeMCList.shift();
- _root.activeMC = _root.activeMCList.shift();
- _root.activeMClist.unshift(_root.activeMC);
- _root.dynamicbuttonMc.setProperty("frontAudioInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("backAudioInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("frontImageHolderInstance",_visible,false);
- _root.dynamicbuttonMc.setProperty("backImageHolderInstance",_visible,false);
- _root.dynamicbuttonMc.question = _root.frontArray[_root.activeMC];
- _root.dynamicbuttonMc.answer = _root.backArray[_root.activeMC];
- _root.dynamicbuttonMc.frontAudio = _root.frontAudioArray[_root.activeMC];
- _root.dynamicbuttonMc.backAudio = _root.backAudioArray[_root.activeMC];
- _root.dynamicbuttonMc.frontImage = _root.frontImageArray[_root.activeMC];
- _root.dynamicbuttonMc.backImage = _root.backImageArray[_root.activeMC];
- _root.dynamicbuttonMc.setProperty("_root.flipcursor1",_visible,false);
- _root.dynamicbuttonMc.gotoAndPlay(1);
- _root.removeMC.gotoAndPlay(1);
- if(_root.activeTotal > _root.passiveMC + 1)
- {
- _root.passiveMC += 1;
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- else if(_root.passiveMC gt 1)
- {
- _root.passiveMC -= 1;
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- else if(_root.passiveMC eq 1)
- {
- _root.activetotal -= 1;
- _root.activeRemoved += 1;
- }
- }
- else if(_root.activeTotal = 1)
- {
- _root.nomoreMC.gotoAndPlay(1);
- }
- cardlisting = "Tarjeta: <font color =\"#6868CE\">" + _root.passiveMC + "</font>" + " de " + "<font color =\"#6868CE\">" + _root.activeTotal + "</font>";
- rem = "Eliminadas: <font color =\"#FF0000\">" + _root.activeRemoved + "</font>";
- }
-